/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.entity.cms;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: TreeBook
 * @Description: 字典管理
 * @author 汤宏
 * @date 2017年11月03日10:00:00
 *
 */
@Entity
@Table(name = "cms_tree_book")
public class TreeBook  extends BaseEntity {

	private static final long serialVersionUID = -4042243814253182240L;
	/**
	 *父级ID
	 */
	@Column(name = "pid")
	private Long pid;
	/**
	 *父级code
	 */
	@Column(name = "pcode")
	private String pcode;
	/**
	 *code
	 */
	@Column(name = "code")
	private String code;
	/**
	 *名称
	 */
	@Column(name = "name")
	private String name;
	/**
	 *排序 0-999
	 */
	@Column(name = "sort")
	private Integer sort;
	/**
	 *层级
	 */
	@Column(name = "levels")
	private String levels;
	/**
	 *扩展字段1
	 */
	@Column(name = "ext1")
	private String ext1;
	/**
	 *扩展字段2
	 */
	@Column(name = "ext2")
	private String ext2;
	/**
	 *扩展字段3
	 */
	@Column(name = "ext3")
	private String ext3;
	/**
	 *扩展字段4
	 */
	@Column(name = "ext4")
	private String ext4;
	/**
	 *扩展字段5
	 */
	@Column(name = "ext5")
	private String ext5;


	/**
	 *状态 0禁用 1启用
	 */
	@Column(name = "status")
	private Integer status;
	/**
	 *备注
	 */
	@Column(name = "description")
	private String description;
	/**
	 * 类型
	 */
	@Column(name = "type")
	private Integer type;

	/**
	 * 事业部类型
	 * 事业部类型
	 */
	@Column(name = "cost_type")
	private Integer costType;

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getPcode() {
		return pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getLevels() {
		return levels;
	}

	public void setLevels(String levels) {
		this.levels = levels;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getExt1() {
		return ext1;
	}

	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	public String getExt2() {
		return ext2;
	}

	public void setExt2(String ext2) {
		this.ext2 = ext2;
	}

	public String getExt3() {
		return ext3;
	}

	public void setExt3(String ext3) {
		this.ext3 = ext3;
	}

	public String getExt4() {
		return ext4;
	}

	public void setExt4(String ext4) {
		this.ext4 = ext4;
	}

	public String getExt5() {
		return ext5;
	}

	public void setExt5(String ext5) {
		this.ext5 = ext5;
	}

	public Integer getCostType() {
		return costType;
	}

	public void setCostType(Integer costType) {
		this.costType = costType;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}


}
